//
//  leftViewController.m
//  EducationAdminClient
//
//  Created by KWSD_F on 16/4/6.
//  Copyright © 2016年 周佳兴. All rights reserved.
//

#import "leftViewController.h"

@interface leftViewController ()

@end

@implementation leftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor purpleColor]];
    
    UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 200, [UIScreen mainScreen].bounds.size.height)];
    [label setText:@"这是左视图"];
    [label setTextColor:[UIColor whiteColor]];
    [label setNumberOfLines:0];
    [label setFont:[UIFont systemFontOfSize:100]];
    _stuMesg = [UIButton buttonWithType:UIButtonTypeCustom];
    
//    [baseView addSubview:_stuMesg];
    _stuMesg.frame = CGRectMake(0, 49, 149/2, 25);
    
    //    [_stuMesg setTitle:@"个人资料" forState:UIControlStateNormal];
//    [_stuMesg setImage:[UIImage imageNamed:@"个人资料1"] forState:UIControlStateNormal];
    [_stuMesg setBackgroundColor:[UIColor grayColor]];
    _stuMesg.titleLabel.font = [UIFont systemFontOfSize:13];
    //    [_stuMesg sizeToFit];
    [_stuMesg setTitleColor:[UIColor blackColor]forState:UIControlStateNormal];
    [_stuMesg setTitle:@"个人资料" forState:UIControlStateNormal];
    [_stuMesg addTarget:self action:@selector(toSeeMessage:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:label];
    [self.view addSubview:_stuMesg];
    // Do any additional setup after loading the view.
}

-(void)toSeeMessage:(UIButton *)btn{
//    MessageController *mvc = [[MessageController alloc]init];
//    
//    [self.navigationController pushViewController:mvc animated:YES];
//    self.cusTabView.hidden = YES;
    NSLog(@"这里是左视图");
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
